package cn.stylefeng.guns.modular.gridsystem.service;

import cn.stylefeng.guns.core.pojo.page.PageResult;
import cn.stylefeng.guns.modular.gridsystem.entity.ThirdPartyInterconnection;
import cn.stylefeng.guns.modular.gridsystem.model.param.ThirdPartyInterconnectionParam;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 第三方对接 服务类
 *
 * @author ssy
 * @date 2021/11/04 17:42
 */
public interface ThirdPartyInterconnectionService extends IService<ThirdPartyInterconnection> {

    /**
     * 分页查询第三方对接
     *
     * @author ssy
     * @date 2021/11/04 17:42
     */
    PageResult<ThirdPartyInterconnection> page(ThirdPartyInterconnectionParam thirdPartyInterconnectionParam);

    /**
     * 查询所有第三方对接
     *
     * @author ssy
     * @date 2021/11/04 17:42
     */
    List<ThirdPartyInterconnection> list(ThirdPartyInterconnectionParam thirdPartyInterconnectionParam);

    /**
     * 添加第三方对接
     *
     * @author ssy
     * @date 2021/11/04 17:42
     */
    void add(ThirdPartyInterconnectionParam thirdPartyInterconnectionParam);

    /**
     * 删除第三方对接
     *
     * @author ssy
     * @date 2021/11/04 17:42
     */
    void delete(ThirdPartyInterconnectionParam thirdPartyInterconnectionParam);

    /**
     * 编辑第三方对接
     *
     * @author ssy
     * @date 2021/11/04 17:42
     */
    void edit(ThirdPartyInterconnectionParam thirdPartyInterconnectionParam);

    /**
     * 查看详情第三方对接
     *
     * @author ssy
     * @date 2021/11/04 17:42
     */
    ThirdPartyInterconnection detail(ThirdPartyInterconnectionParam thirdPartyInterconnectionParam);

    ThirdPartyInterconnection getByAppKey(String appKey);
}
